package com.example.jikeyoujikeyou.office_sz.model.base;

import com.example.jikeyoujikeyou.office_sz.model.base.BaseModel;

import java.util.Date;

public class BaseAttendance extends BaseModel {

    private String id;
   
    private String staffId;

    private Date signinTime;

    private String signinLocation;

    private Date signoutTime;

    private String companyId;

    private String signoutLocation;

    private Date createTime;

    /**
     * 构造方法.
     *
     * @param json
     */
    public BaseAttendance(String json) {
        super(json);
    }

    public String getId() {
        if (null == id) {
            return (String) get("id");
        }
        return id;
    }

    public void setId(String id) {
        this.put("id", id);
        this.id = id;
    }

    public String getStaffId() {
        if (null == staffId) {
            return (String) get("staffId");
        }
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.put("staffId", staffId);
        this.staffId = staffId;
    }

    public Date getSigninTime() {
        if (null == signinTime) {
            return (Date) get("signinTime");
        }
        return signinTime;
    }

    public void setSigninTime(Date signinTime) {
        this.put("signinTime", signinTime);
        this.signinTime = signinTime;
    }

    public String getSigninLocation() {
        if (null == signinLocation) {
            return (String) get("signinLocation");
        }
        return signinLocation;
    }

    public void setSigninLocation(String signinLocation) {
        this.put("signinLocation", signinLocation);
        this.signinLocation = signinLocation;
    }

    public Date getSignoutTime() {
        if (null == signoutTime) {
            return (Date) get("signoutTime");
        }
        return signoutTime;
    }

    public void setSignoutTime(Date signoutTime) {
        this.put("signoutTime", signoutTime);
        this.signoutTime = signoutTime;
    }

    public String getCompanyId() {
        if (null == companyId) {
            return (String) get("companyId");
        }
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.put("companyId", companyId);
        this.companyId = companyId;
    }

    public String getSignoutLocation() {
        if (null == signoutLocation) {
            return (String) get("signoutLocation");
        }
        return signoutLocation;
    }

    public void setSignoutLocation(String signoutLocation) {
        this.put("signoutLocation", signoutLocation);
        this.signoutLocation = signoutLocation;
    }

    public Date getCreateTime() {
        if (null == createTime) {
            return (Date) get("createTime");
        }
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.put("createTime", createTime);
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "BaseAttendance{" +
                "id='" + id + '\'' +
                ", staffId='" + staffId + '\'' +
                ", signinTime=" + signinTime +
                ", signinLocation='" + signinLocation + '\'' +
                ", signoutTime=" + signoutTime +
                ", companyId='" + companyId + '\'' +
                ", signoutLocation='" + signoutLocation + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}